<br/>
<table cellpadding="2" cellspacing="0" border="1" class="formTable" width="-80">
    <tbody>
        <tr class="firstRow">
            <td colspan="8" class="formHead" width="1429">
                场地火灾_营运操作调整
            </td>
        </tr>
        <tr>
            <td colspan="8" class="teamHead" width="1429">
                上报信息
            </td>
        </tr>
        <tr>
            <td align="right" style="width:10%;" class="formTitle" nowrap="nowarp">
                <span i18nkey="m:cdhz:csycdj">初始异常等级</span>:
            </td>
            <td style="width:15%;" class="formInput" width="146">
                <input type="text" el-component="1" name="m:cdhz:csycdj" class="inputText" value="" validate="{maxlength:20}"/>
            </td>
            <td align="right" style="width:10%;" class="formTitle" nowrap="nowarp" width="139">
                <span i18nkey="m:cdhz:ycdj">异常等级</span>:
            </td>
            <td style="width:15%;" class="formInput">
                <input type="text" el-component="1" name="m:cdhz:ycdj" class="inputText" value="" validate="{maxlength:20}"/>
            </td>
            <td align="right" style="width:10%;" class="formTitle" nowrap="nowarp">
                <span i18nkey="m:cdhz:zrdq">责任地区</span>:
            </td>
            <td style="width:15%;" class="formInput">
                <input type="text" el-component="1" name="m:cdhz:zrdq" class="inputText" value="" validate="{maxlength:20}"/>
            </td>
            <td style="width:15%;" class="formInput"></td>
            <td style="width:15%;" class="formInput"></td>
        </tr>
        <tr>
            <td align="right" style="width:10%;" class="formTitle" nowrap="nowarp">
                <span i18nkey="m:cdhz:kssbrgh">快速上报人工号</span>:
            </td>
            <td style="width:15%;" class="formInput" width="146">
                <input type="text" el-component="1" name="m:cdhz:kssbrgh" class="inputText" value="" validate="{maxlength:100}"/>
            </td>
            <td align="right" style="width:10%;" class="formTitle" nowrap="nowarp" width="139">
                <span i18nkey="m:cdhz:kssbrxm">快速上报人姓名</span>:
            </td>
            <td style="width:15%;" class="formInput">
                <input type="text" el-component="1" name="m:cdhz:kssbrxm" class="inputText" value="" validate="{maxlength:100}"/>
            </td>
            <td align="right" style="width:10%;" class="formTitle" nowrap="nowarp">
                <span i18nkey="m:cdhz:kssbrlxfs">快速上报人联系方式</span>:
            </td>
            <td style="width:15%;" class="formInput">
                <input type="text" el-component="1" name="m:cdhz:kssbrlxfs" class="inputText" value="" validate="{maxlength:100}"/>
            </td>
            <td align="right" style="width:10%;" class="formTitle" nowrap="nowarp">
                <span i18nkey="m:cdhz:kssbsj">快速上报时间</span>:
            </td>
            <td style="width:15%;" class="formInput">
                <input name="m:cdhz:kssbsj" el-component="17" type="text" class="Wdate" displaydate="0" datefmt="yyyy-MM-dd HH:mm:ss" value="" validate="{}"/>
            </td>
        </tr>
        <tr>
            <td align="right" style="width:10%;" class="formTitle" nowrap="nowarp">
                <span i18nkey="m:cdhz:sbrgh">上报人工号</span>:
            </td>
            <td style="width:15%;" class="formInput" width="146">
                <input type="text" el-component="1" name="m:cdhz:sbrgh" class="inputText" value="" validate="{maxlength:100}"/>
            </td>
            <td align="right" style="width:10%;" class="formTitle" nowrap="nowarp" width="139">
                <span i18nkey="m:cdhz:sbrxm">上报人姓名</span>:
            </td>
            <td style="width:15%;" class="formInput">
                <input type="text" el-component="1" name="m:cdhz:sbrxm" class="inputText" value="" validate="{maxlength:100}"/>
            </td>
            <td align="right" style="width:10%;" class="formTitle" nowrap="nowarp">
                <span i18nkey="m:cdhz:sbrlxfs">上报人联系方式</span>:
            </td>
            <td style="width:15%;" class="formInput">
                <input type="text" el-component="1" name="m:cdhz:sbrlxfs" class="inputText" value="" validate="{maxlength:100}"/>
            </td>
            <td align="right" style="width:10%;" class="formTitle" nowrap="nowarp">
                <span i18nkey="m:cdhz:sbsj">上报时间</span>:
            </td>
            <td style="width:15%;" class="formInput">
                <input name="m:cdhz:sbsj" el-component="17" type="text" class="Wdate" displaydate="0" datefmt="yyyy-MM-dd HH:mm:ss" value="" validate="{}"/>
            </td>
        </tr>
        <tr>
            <td align="right" style="width:10%;" class="formTitle" nowrap="nowarp">
                <span i18nkey="m:cdhz:yccldq">异常处理地区</span>:
            </td>
            <td style="width: 15%; word-break: break-all;" class="formInput" width="146">
                <div>
                     
 
 
 
							<input name="m:cdhz:yccldqPATH" type="hidden" class="hidden" value=""/><input name="m:cdhz:yccldqID" type="hidden" class="hidden" value=""/><input el-component="23" selector-showfield="" name="m:cdhz:yccldq" validate="{}" readonly="" class="widget-fragment w-default" placeholder="选择..."/>
                </div>
            </td>
            <td align="right" style="width:10%;" class="formTitle" nowrap="nowarp" width="139">
                <span i18nkey="m:cdhz:ycclwd">异常处理网点</span>:
            </td>
            <td style="width: 15%; word-break: break-all;" class="formInput">
                <div>
                     
 
 
 
							<input name="m:cdhz:ycclwdPATH" type="hidden" class="hidden" value=""/><input name="m:cdhz:ycclwdID" type="hidden" class="hidden" value=""/><input el-component="23" selector-showfield="" name="m:cdhz:ycclwd" validate="{}" readonly="" class="widget-fragment w-default" placeholder="选择..."/>
                </div>
            </td>
            <td align="right" style="width:10%;" class="formTitle" nowrap="nowarp">
                <span i18nkey="m:cdhz:fxsj">发现时间</span>:
            </td>
            <td style="width:15%;" class="formInput">
                <input name="m:cdhz:fxsj" el-component="17" type="text" class="Wdate" displaydate="0" datefmt="yyyy-MM-dd HH:mm:ss" value="" validate="{}"/>
            </td>
            <td align="right" style="width:10%;" class="formTitle" nowrap="nowarp">
                <span i18nkey="m:cdhz:sfyssb">是否延时上报</span>:
            </td>
            <td style="width:15%;" class="formInput">
                <input type="text" el-component="1" name="m:cdhz:sfyssb" class="inputText" value="" validate="{maxlength:20}"/>
            </td>
        </tr>
        <tr>
            <td align="right" style="width:10%;" class="formTitle" nowrap="nowarp">
                <span i18nkey="m:cdhz:ycms">异常描述</span>:
            </td>
            <td style="width:15%;" class="formInput" width="146">
                <textarea name="m:cdhz:ycms" el-component="2" validate="{}"></textarea>
            </td>
            <td align="right" style="width: 10%; word-break: break-all;" class="formTitle" nowrap="nowarp" width="139"></td>
            <td style="width: 15%; word-break: break-all;" class="formInput"></td>
            <td style="width: 15%; word-break: break-all; text-align: right;" class="formInput">
                <span i18nkey="m:cdhz:fjxx" style="text-align: -webkit-right; white-space: normal;">附件信息</span><span style="text-align: -webkit-right; white-space: normal; background-color: rgb(250, 250, 250);">:</span>
            </td>
            <td style="width: 15%; word-break: break-all;" class="formInput">
                <input type="file" value="请选择" el-component="12" name="m:cdhz:fjxx" validate="{required:false}" action="http://owsp.sit.sf-express.com/sysFile/upload" class="widget-fragment w-upload"/>
            </td>
            <td style="width:15%;" class="formInput"></td>
            <td style="width:15%;" class="formInput"></td>
        </tr>
        <tr>
            <td colspan="8" class="teamHead" width="1429">
                事件基本信息
            </td>
        </tr>
        <tr>
            <td align="right" style="width:10%;" class="formTitle" nowrap="nowarp">
                <span i18nkey="m:cdhz:fswd">发生网点</span>:
            </td>
            <td style="width:15%;" class="formInput" width="146">
                <input type="text" el-component="1" name="m:cdhz:fswd" class="inputText" value="" validate="{maxlength:100}"/>
            </td>
            <td align="right" style="width:10%;" class="formTitle" nowrap="nowarp" width="139">
                <span i18nkey="m:cdhz:fswdlx">发生网点类型</span>:
            </td>
            <td style="width:15%;" class="formInput">
                <select name="m:cdhz:fswdlx" el-component="13" validate="{}"><option value=""></option>
                <option value="1">
                    中转场
                </option>
                <option value="2">
                    营业网点
                </option>
                <option value="3">
                    办公场地
                </option>
                <option value="4">
                    仓库
                </option></select>
            </td>
            <td align="right" style="width:10%;" class="formTitle" nowrap="nowarp">
                <span i18nkey="m:cdhz:cbyypd">初步原因判断</span>:
            </td>
            <td style="width:15%;" class="formInput">
                <select name="m:cdhz:cbyypd" el-component="13" validate="{}"><option value=""></option>
                <option value="1">
                    电路原因（老化、超负荷等）
                </option>
                <option value="2">
                    用电设备原因
                </option>
                <option value="3">
                    快件自燃
                </option>
                <option value="4">
                    不安全用火
                </option>
                <option value="5">
                    外部原因
                </option>
                <option value="6">
                    其他原因
                </option></select>
            </td>
            <td style="width:15%;" class="formInput"></td>
            <td style="width:15%;" class="formInput"></td>
        </tr>
        <tr>
            <td colspan="8" class="teamHead" width="1429">
                影响信息
            </td>
        </tr>
        <tr>
            <td align="right" style="width: 10%; word-break: break-all;" class="formTitle" nowrap="nowarp"></td>
            <td style="width:15%;" class="formInput" width="146">
                <label><input type="checkbox" el-component="14" name="m:cdhz:zcss" value="1" validate="{}" label="资产损失"/>资产损失</label>
            </td>
            <td align="right" style="width: 10%; word-break: break-all;" class="formTitle" nowrap="nowarp" width="139"></td>
            <td style="width: 15%; word-break: break-all;" class="formInput">
                <label><input type="checkbox" el-component="14" name="m:cdhz:wysh" value="1" validate="{}" label="物业损坏"/>物业损坏</label>
            </td>
            <td align="right" style="width: 10%; word-break: break-all;" class="formTitle" nowrap="nowarp"></td>
            <td style="width:15%;" class="formInput">
                <label><input type="checkbox" el-component="14" name="m:cdhz:zcdsfss" value="1" validate="{}" label="造成第三方损失"/>造成第三方损失</label>
            </td>
            <td align="right" style="width: 10%; word-break: break-all;" class="formTitle" nowrap="nowarp"></td>
            <td style="width: 15%; word-break: break-all;" class="formInput">
                <label><input type="checkbox" el-component="14" name="m:cdhz:nbrysw" value="1" validate="{}" label="内部人员伤亡"/>内部人员伤亡</label>
            </td>
        </tr>
        <tr>
            <td align="right" style="width: 10%; word-break: break-all;" class="formTitle" nowrap="nowarp"></td>
            <td style="width:15%;" class="formInput" width="146">
                <label><input type="checkbox" el-component="14" name="m:cdhz:kjsh" value="1" validate="{}" label="快件损坏"/>快件损坏</label>
            </td>
            <td align="right" style="width: 10%; word-break: break-all;" class="formTitle" nowrap="nowarp" width="139"></td>
            <td style="width: 15%; word-break: break-all;" class="formInput">
                <label><input type="checkbox" el-component="14" name="m:cdhz:yxyycz" value="1" validate="{}" label="影响营运操作"/>影响营运操作</label>
            </td>
            <td style="width:15%;" class="formInput"></td>
            <td style="width:15%;" class="formInput"></td>
            <td style="width:15%;" class="formInput"></td>
            <td style="width:15%;" class="formInput"></td>
        </tr>
        <tr id="hfnr">
            <td colspan="8" class="teamHead" style="background-color:#8ebcec;" width="1429">
                回复内容
            </td>
        </tr>
        <tr>
            <td align="right" style="width:10%;" class="formTitle" nowrap="nowarp">
                <span i18nkey="m:cdhz:cqcs">采取措施</span>:
            </td>
            <td style="width: 15%; word-break: break-all;" class="formInput" width="146">
                <label><input type="checkbox" el-component="14" name="m:cdhz:cqcs" validate="{required:false}" value="1" label="增加人员" class="widget-fragment w-checkbox"/>增加人员</label><label><input type="checkbox" el-component="14" name="m:cdhz:cqcs" validate="{required:false}" value="2" label="周边网点分流" class="widget-fragment w-checkbox"/>周边网点分流</label><label><input type="checkbox" el-component="14" name="m:cdhz:cqcs" validate="{required:false}" value="3" label="增加资源投入" class="widget-fragment w-checkbox"/>增加资源投入</label><label><input type="checkbox" el-component="14" name="m:cdhz:cqcs" validate="{required:false}" value="4" label="周边场地分流" class="widget-fragment w-checkbox"/>周边场地分流</label><label><input type="checkbox" el-component="14" name="m:cdhz:cqcs" validate="{required:false}" value="5" label="简化操作" class="widget-fragment w-checkbox"/>简化操作</label><label><input type="checkbox" el-component="14" name="m:cdhz:cqcs" validate="{required:false}" value="6" label="其他" class="widget-fragment w-checkbox"/>其他</label>
            </td>
            <td align="right" style="width:10%;" class="formTitle" nowrap="nowarp">
                <span i18nkey="m:cdhz:hjyxps">合计影响票数</span>:
            </td>
            <td style="width:15%;" class="formInput" width="139">
                <input type="text" el-component="1" name="m:cdhz:hjyxps" class="inputText" value="" validate="{maxlength:20}"/>
            </td>
            <td align="right" style="width: 10%; word-break: break-all;" class="formTitle" nowrap="nowarp">
                <span i18nkey="m:cdhz:yyczdz_scfj">营运操作调整_上传附件</span>:
            </td>
            <td style="width: 15%; word-break: break-all;" class="formInput">
                <input el-component="12" name="m:cdhz:yyczdz_scfj" controltype="attachment" type="file"/>
            </td>
            <td align="right" style="width: 10%; word-break: break-all;" class="formTitle" nowrap="nowarp"></td>
            <td style="width: 15%; word-break: break-all;" class="formInput"></td>
        </tr>
        <tr>
            <td align="right" style="width: 10%; word-break: break-all;" class="formTitle" nowrap="nowarp">
                具体说明:
            </td>
            <td style="width: 15%; word-break: break-all;" class="formInput" width="146">
                <input el-component="1" name="m:cdhz:yyczdz_jtsm" validate="{maxlength:800,required:false,maxDecimalLen:0}" nodekey="" class="widget-fragment w-input"/><br/>
            </td>
            <td style="width:15%;" class="formInput" width="139"></td>
            <td style="width:15%;" class="formInput"></td>
            <td style="width:15%;" class="formInput"></td>
            <td style="width:15%;" class="formInput"></td>
            <td style="width:15%;" class="formInput"></td>
            <td style="width:15%;" class="formInput"></td>
        </tr>
        <tr v-if="fragmentForm[&#39;m:cdhz:fswdlx&#39;] == 1">
            <td colspan="8" class="teamHead">
                中转情况影响
            </td>
        </tr>
        <tr v-if="fragmentForm[&#39;m:cdhz:fswdlx&#39;] == 1">
            <td class="formTitle" style="-ms-word-break: break-all;" rowspan="1" colspan="8" width="1429">
                <div type="subtable" tablename="cdhz_zzqkyx" right="w">
                    <table class="listTable">
                        <tbody>
                            <tr class="toolBar firstRow">
                                <td colspan="8" class="toolBar">
                                    <a class="link add" href="javascript:;" onclick="return false;">添加</a><span>使用右键操作</span>
                                </td>
                            </tr>
                            <tr class="headRow">
                                <th nowrap="nowarp">
                                    <span i18nkey="s:cdhz_zzqkyx:yxrq">影响日期</span>
                                </th>
                                <th nowrap="nowarp">
                                    <span i18nkey="s:cdhz_zzqkyx:yxbc">影响班次</span>
                                </th>
                                <th nowrap="nowarp">
                                    <span i18nkey="s:cdhz_zzqkyx:jlsjd">记录时间点</span>
                                </th>
                                <th nowrap="nowarp">
                                    <span i18nkey="s:cdhz_zzqkyx:zzwclps">中转未处理票数</span>
                                </th>
                                <th nowrap="nowarp">
                                    <span i18nkey="s:cdhz_zzqkyx:zzwclpspjzqsztq">中转未处理票数平均值（前三周同期）</span>
                                </th>
                                <th nowrap="nowarp">
                                    <span i18nkey="s:cdhz_zzqkyx:zzyxps">中转影响票数</span>
                                </th>
                                <th nowrap="nowarp">
                                    <span i18nkey="s:cdhz_zzqkyx:gjrygh">跟进人员工号</span>
                                </th>
                                <th nowrap="nowarp">
                                    <span i18nkey="s:cdhz_zzqkyx:gjsj">跟进时间</span>
                                </th>
                            </tr>
                            <tr class="listRow" formtype="edit">
                                <td>
                                    <input name="s:cdhz_zzqkyx:yxrq" el-component="17" type="text" class="Wdate" displaydate="0" datefmt="yyyy-MM-dd" value="" validate="{}"/>
                                </td>
                                <td>
                                    <input type="text" el-component="1" name="s:cdhz_zzqkyx:yxbc" class="inputText" value="" validate="{maxlength:20}"/>
                                </td>
                                <td>
                                    <input name="s:cdhz_zzqkyx:jlsjd" type="text" el-component="1" value="" validate="{number:true,maxIntLen:20,maxDecimalLen:0}"/>
                                </td>
                                <td>
                                    <input type="text" el-component="1" name="s:cdhz_zzqkyx:zzwclps" class="inputText" value="" validate="{maxlength:20}"/>
                                </td>
                                <td>
                                    <input type="text" el-component="1" name="s:cdhz_zzqkyx:zzwclpspjzqsztq" class="inputText" value="" validate="{maxlength:20}"/>
                                </td>
                                <td>
                                    <input type="text" el-component="1" name="s:cdhz_zzqkyx:zzyxps" class="inputText" value="" validate="{maxlength:20}"/>
                                </td>
                                <td>
                                    <input type="text" el-component="1" name="s:cdhz_zzqkyx:gjrygh" class="inputText" value="" validate="{maxlength:20}"/>
                                </td>
                                <td>
                                    <input type="text" el-component="1" name="s:cdhz_zzqkyx:gjsj" class="inputText" value="" validate="{maxlength:20}"/>
                                </td>
                            </tr>
                        </tbody>
                    </table><br/>
                </div>
            </td>
        </tr>
        <tr v-if="fragmentForm[&#39;m:cdhz:fswdlx&#39;] == 2">
            <td colspan="8" class="teamHead">
                收派情况影响
            </td>
        </tr>
        <tr v-if="fragmentForm[&#39;m:cdhz:fswdlx&#39;] == 2">
            <td class="formTitle" style="-ms-word-break: break-all;" rowspan="1" colspan="8" width="1429">
                <div type="subtable" tablename="cdhz_spqkyx" right="w">
                    <table class="listTable">
                        <tbody>
                            <tr class="toolBar firstRow">
                                <td colspan="8" class="toolBar">
                                    <a class="link add" href="javascript:;" onclick="return false;">添加</a><span>使用右键操作</span>
                                </td>
                            </tr>
                            <tr class="headRow">
                                <th nowrap="nowarp">
                                    <span i18nkey="s:cdhz_spqkyx:yxrq">影响日期</span>
                                </th>
                                <th nowrap="nowarp">
                                    <span i18nkey="s:cdhz_spqkyx:yxwd">影响网点</span>
                                </th>
                                <th nowrap="nowarp">
                                    <span i18nkey="s:cdhz_spqkyx:jlsjd">记录时间点</span>
                                </th>
                                <th nowrap="nowarp">
                                    <span i18nkey="s:cdhz_spqkyx:drkc">当日库存</span>
                                </th>
                                <th nowrap="nowarp">
                                    <span i18nkey="s:cdhz_spqkyx:kcpjzqsztq">库存平均值（前三周同期）</span>
                                </th>
                                <th nowrap="nowarp">
                                    <span i18nkey="s:cdhz_spqkyx:kcyxps">库存影响票数</span>
                                </th>
                                <th nowrap="nowarp">
                                    <span i18nkey="s:cdhz_spqkyx:gjrygh">跟进人员工号</span>
                                </th>
                                <th nowrap="nowarp">
                                    <span i18nkey="s:cdhz_spqkyx:gjsj">跟进时间</span>
                                </th>
                            </tr>
                            <tr class="listRow" formtype="edit">
                                <td>
                                    <input name="s:cdhz_spqkyx:yxrq" el-component="17" type="text" class="Wdate" displaydate="0" datefmt="yyyy-MM-dd" value="" validate="{}"/>
                                </td>
                                <td>
                                    <input type="text" el-component="1" name="s:cdhz_spqkyx:yxwd" class="inputText" value="" validate="{maxlength:20}"/>
                                </td>
                                <td>
                                    <input name="s:cdhz_spqkyx:jlsjd" type="text" el-component="1" value="" validate="{number:true,maxIntLen:20,maxDecimalLen:0}"/>
                                </td>
                                <td>
                                    <input type="text" el-component="1" name="s:cdhz_spqkyx:drkc" class="inputText" value="" validate="{maxlength:20}"/>
                                </td>
                                <td>
                                    <input type="text" el-component="1" name="s:cdhz_spqkyx:kcpjzqsztq" class="inputText" value="" validate="{maxlength:20}"/>
                                </td>
                                <td>
                                    <input type="text" el-component="1" name="s:cdhz_spqkyx:kcyxps" class="inputText" value="" validate="{maxlength:20}"/>
                                </td>
                                <td>
                                    <input type="text" el-component="1" name="s:cdhz_spqkyx:gjrygh" class="inputText" value="" validate="{maxlength:20}"/>
                                </td>
                                <td>
                                    <input type="text" el-component="1" name="s:cdhz_spqkyx:gjsj" class="inputText" value="" validate="{maxlength:20}"/>
                                </td>
                            </tr>
                        </tbody>
                    </table><br/>
                </div>
            </td>
        </tr>
    </tbody>
</table><br/><script>$(function(){
        //---------计算合计影响票数
        //获取中转场影响票数
        function getzzyxps(){
            var zzqkyx=FR_SUB["cdhz_zzqkyx"]||[];
            var zzyxps=0;
            zzqkyx.forEach(row=>{
                if(row){
                    zzyxps+=parseInt(row.getData("s:cdhz_zzqkyx:zzwclps"))?parseInt(row.getData("s:cdhz_zzqkyx:zzwclps")):0;
                    zzyxps-=parseInt(row.getData("s:cdhz_zzqkyx:zzwclpspjzqsztq"))?parseInt(row.getData("s:cdhz_zzqkyx:zzwclpspjzqsztq")):0;
                }
            })
            return zzyxps;
        }
        //获取营业网点票数(库存影响票数)
        function getkcyxps(){
            var spqkyx=FR_SUB["cdhz_spqkyx"]||[];
            var kcyxps=0;
            spqkyx.forEach(row=>{
                if(row){
                    kcyxps+=parseInt(row.getData("s:cdhz_spqkyx:drkc"))?parseInt(row.getData("s:cdhz_spqkyx:drkc")):0;
                    kcyxps-=parseInt(row.getData("s:cdhz_spqkyx:kcpjzqsztq"))?parseInt(row.getData("s:cdhz_spqkyx:kcpjzqsztq")):0;
                }
            })
            return kcyxps;
        }
        function sethjyxps(){
            var fswdlx=parseInt(FR_MAIN.getData("m:cdhz:fswdlx"));
            var hjyxps='';
            switch(fswdlx){
                case 1://中转场
                    hjyxps=getzzyxps();
                    break;
                case 2://营业网点
                    hjyxps=getkcyxps();
                    break;
                case 3://办公场地
                    break;
                case 4://仓库
                    break;
                default:
                    break;
            }
            FR_MAIN.setData("m:cdhz:hjyxps",hjyxps);
        }
        //--------子表处理-----
        //获取当前用户，设置跟进人工号
        function getCurrentUser(row,accountName){
            FR.$httpExt().get(store.state.global.owspBackUrl+'sysUserManage/getCurrentUser').then((response) => {
                    
                    var result=response.result;
                    if(result.dataState!="exist"){
                        try {
                            row.setData(accountName,'');
                            FR.$message({
                                type: 'warning',
                                message: "用户不存在"
                            });
                        } catch (error) { 
                        }
                    }else{
                        row.setData(accountName,result.account);
                    }
                 }, (response) => {
                    row.setData(accountName,'');
                    FR.$notify.error({
                        title: '异常',
                        message: response.msg
                    });
              	})            
        }
        //set 跟进人工号，时间
        function setaccountandtime(table,accountName,timeName){
            var rows=FR_SUB[table]||[];
            rows.forEach((row,i) => {
                if(row){
                    //获取当前用户，跟进人
                    if(!row.getData(accountName)&&row.getData(accountName)==''){
                        getCurrentUser(row,accountName);
                    }
                    //获取当前时间，跟进时间
                    if(!row.getData(timeName)&&row.getData(timeName)==''){
                        var date=new Date();
                      row.setData(timeName,date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate()+' '+date.getHours()+':'+date.getMinutes()+':'+date.getSeconds());
         
                    }
                }
            });
        }
        //设置中转影响票数
        function setszzyxps(){      
            var zzqkyx =FR_SUB["cdhz_zzqkyx"]||[];
            zzqkyx.forEach(row=>{
                if(row){
                    var zzwclps=parseInt(row.getData("s:cdhz_zzqkyx:zzwclps"))?parseInt(row.getData("s:cdhz_zzqkyx:zzwclps")):0;
                    var zzwclpspjzqsztq=parseInt(row.getData("s:cdhz_zzqkyx:zzwclpspjzqsztq"))?parseInt(row.getData("s:cdhz_zzqkyx:zzwclpspjzqsztq")):0;
                    row.setData("s:cdhz_zzqkyx:zzyxps",zzwclps-zzwclpspjzqsztq);
                    row.setReadonly('s:cdhz_zzqkyx:zzyxps', true);
                }
            })
        }
        //设置库存影响票数
        function setkcyxps(){
            var spqkyx =FR_SUB["cdhz_spqkyx"]||[];
            spqkyx.forEach(row=>{
                if(row){
                    var drkc=parseInt(row.getData("s:cdhz_spqkyx:drkc"))?parseInt(row.getData("s:cdhz_spqkyx:drkc")):0;
                    var kcpjzqsztq=parseInt(row.getData("s:cdhz_spqkyx:kcpjzqsztq"))?parseInt(row.getData("s:cdhz_spqkyx:kcpjzqsztq")):0;
                    row.setData("s:cdhz_spqkyx:kcyxps",drkc-kcpjzqsztq);
                    row.setReadonly('s:cdhz_zzqkyx:kcyxps', true);
                }
            })
        }
        window.RowsAdd= Object.assign({}, {
			//库存影响
			'cdhz_spqkyx': function(tablename, obj) {
                setaccountandtime("cdhz_spqkyx","s:cdhz_spqkyx:gjrygh","s:cdhz_spqkyx:gjsj");
            },
            //中转影响
			'cdhz_zzqkyx': function(tablename, obj) {
                setaccountandtime("cdhz_zzqkyx","s:cdhz_zzqkyx:gjrygh","s:cdhz_zzqkyx:gjsj");
			}
		});
        window.RowsRemove= Object.assign( {}, {
			'cdhz_spqkyx': function(tablename, obj) {
				sethjyxps();
			},
			'cdhz_zzqkyx': function(tablename, obj) {
				sethjyxps();
			},
		});
        var fieldChange = {
            //发生网点类型
            "m:cdhz:fswdlx" : function(key, val, item, obj) {
                sethjyxps();
            },
            //当日库存
            "s:cdhz_spqkyx:drkc" : function(key, val, item, obj) {
                setkcyxps();
                sethjyxps();
            },
            //库存平均值（前三周同期）
            "s:cdhz_spqkyx:kcpjzqsztq" : function(key, val, item, obj) {
                setkcyxps();
                sethjyxps();
            },
            //中转未处理票数
            "s:cdhz_zzqkyx:zzwclps" : function(key, val, item, obj) {
                setszzyxps();
                sethjyxps();
            },
            //中转未处理票数平均值（前三周同期）
            "s:cdhz_zzqkyx:zzwclpspjzqsztq" : function(key, val, item, obj) {
                setszzyxps();
                sethjyxps();
            },
        };
        // 表单改变
        window.FormChange = Object.assign({}, fieldChange);
        
    })</script>